package br.com.mware.db;

import android.content.ContentProvider;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.net.Uri;

public class DataBaseContentProvider extends ContentProvider {

	public static final Uri CONTENT_URI = Uri
			.parse("content://br.com.mware.databasecontentprovider");
	
	public static final String DATABASE_NAME = "mydroidcash.db";
	private static  final int  DATABASE_VERSION = 1;
	private static final  String NOTES_TABLE = "lancamento";
	private DBHelper myHelper;
	

	@Override
	public int delete(Uri uri, String selection, String[] selectionArgs) {
		SQLiteDatabase db = myHelper.getWritableDatabase();
		int count;
		
		return 0;
	}

	@Override
	public String getType(Uri uri) {
		return null;
	}

	@Override
	public Uri insert(Uri uri, ContentValues values) {
		return null;
	}

	@Override
	public boolean onCreate() {
		myHelper = new DBHelper(getContext(), DATABASE_NAME, null, DATABASE_VERSION);
		return true;
	}

	@Override
	public Cursor query(Uri uri, String[] projection, String selection,
			String[] selectionArgs, String sortOrder) {
		return null;
	}

	@Override
	public int update(Uri uri, ContentValues values, String selection,
			String[] selectionArgs) {
		return 0;
	}

}
